// config files
var defaultConfig = require('./config-default');
var prodConfig = require('./config-prod');

var config = null;
console.log('process.env.NODE_ENV: ' + process.env.NODE_ENV);
if (process.env.NODE_ENV == 'PROD') {
    console.log(`Load ${prodConfig.database}...`);
    config = prodConfig;
} else {
    console.log(`Load ${defaultConfig.database}...`);
    config = defaultConfig;
}

module.exports = config;